package com.echovin.esb.gateway.service.impl;

import com.echovin.esb.gateway.mapper.GatewayParameterValidateMapper;
import com.echovin.esb.gateway.model.GatewayParameterSchema;
import com.echovin.esb.gateway.service.GatewayParameterValidateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GatewayParameterValidateServiceImpl implements GatewayParameterValidateService {
    @Autowired
    GatewayParameterValidateMapper gatewayParameterValidateMapper;

    public GatewayParameterValidateServiceImpl() {
    }


    @Override
    public List<GatewayParameterSchema> getParameterValidates() {
        return gatewayParameterValidateMapper.getParameterValidates();
    }

    @Override
    public int delete(GatewayParameterSchema record) {
        return gatewayParameterValidateMapper.delete(record);
    }

    @Override
    public int update(GatewayParameterSchema record) {
        return gatewayParameterValidateMapper.update(record);
    }
}
